home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_mysql.idb / usr / freeware / catman / u_man / cat1 / mysqld.Z / mysqld
Encoding:
Text File  |  2002-10-07  |  14.5 KB  |  298 lines

  1. MYSQLD(1)                        MYSQLD(1)
  2.  
  3.  
  4.  
  5. NNAAMMEE
  6.        mmyyssqqlldd
  7.     - Starts the MySQL server demon
  8.  
  9. UUSSAAGGEE
  10.        mysqld [OPTIONS]
  11.  
  12. SSYYNNOOPPSSIISS
  13.        mmyyssqqlldd     [----aannssii]    [--bb|----bbaasseeddiirr==_p_a_t_h]   [----bbiigg--ttaabblleess]
  14.        [----bbiinndd--aaddddrreessss==IIPP]          [----cchhaarraacctteerr--sseettss--ddiirr==_p_a_t_h]
  15.        [----cchhrroooott==_p_a_t_h]     [--hh|----ddaattaaddiirr==_p_a_t_h]   [----ddeeffaauulltt--cchhaarraacc
  16.        tteerr--sseett==_c_h_a_r_s_e_t]              [----ddeeffaauulltt--ttaabbllee--ttyyppee==_t_y_p_e_]
  17.        [----ddeellaayy--kkeeyy--wwrriittee--ffoorr--aallll--ttaabblleess]      [----eennaabbllee--lloocckkiinngg]
  18.        [--TT|----eexxiitt--iinnffoo]]    [----fflluusshh] [--??|----hheellpp]  [----iinniitt--ffiillee==ffiillee]
  19.        [--LL|----llaanngguuaaggee==......]  [--ll|----lloogg[[==ffiillee]]] [----lloogg--iissaamm[[==ffiillee]]]
  20.        [----lloogg--ssllooww--qquueerriieess_[_=_f_i_l_e_]]        [----lloogg--uuppddaattee_[_=_f_i_l_e_]]
  21.        [----lloogg--lloonngg--ffoorrmmaatt] [----llooww--pprriioorriittyy--uuppddaatteess] [----mmeemmlloocckk]    [
  22.        ----mmyyiissaamm--rreeccoovveerr    [[==ooppttiioonn[[,,ooppttiioonn......]]]]]]    wwhheerree  ooppttiioonn  iiss
  23.        oonnee    ooff    DDEEFFAAUULLTT,,    BBAACCKKUUPP,,       FFOORRCCEE    oorr      QQUUIICCKK..]
  24.        [----ppiidd--ffiillee==_p_a_t_h]   [--PP|----ppoorrtt==......]    [--oo|----oolldd--pprroottooccooll]
  25.        [----oonnee--tthhrreeaadd]            [--OO|----sseett--vvaarriiaabblleevar=_o_p_t_i_o_n]]
  26.        [--SSgg|----sskkiipp--ggrraanntt--ttaabblleess]     [----ssaaffee--mmooddee]     [----sseeccuurree]
  27.        [----sskkiipp--ccoonnccuurrrreenntt--iinnsseerrtt]     [----sskkiipp--ddeellaayy--kkeeyy--wwrriittee]
  28.        [----sskkiipp--lloocckkiinngg]    [----sskkiipp--nnaammee--rreessoollvvee] [----sskkiipp--nneettwwoorrkkiinngg]
  29.        [----sskkiipp--nneeww]   [----sskkiipp--hhoosstt--ccaacchhee]  [----sskkiipp--sshhooww--ddaattaabbaassee]
  30.        [----sskkiipp--tthhrreeaadd--pprriioorriittyy]              [----ssoocckkeett==ppaatthh]
  31.        [--tt|----ttmmppddiirr==_p_a_t_h_] [--uu|----uusseerr==_u_s_e_r___n_a_m_e]    [--VV|----vveerrssiioonn]
  32.  
  33. DDEESSCCRRIIPPTTIIOONN
  34.        ----aannssii Use  ANSI     SQL  syntax instead of    MySQL syntax. See
  35.           section 5.2 Running MySQL    in ANSI    Mode.
  36.  
  37.        --bb|----bbaasseeddiirr==_p_a_t_h
  38.           Path to installation directory. All paths    are  usu
  39.           ally resolved relative to    this.
  40.  
  41.        ----bbiigg--ttaabblleess
  42.           Allow  big result    sets by    saving all temporary sets
  43.           on file. It solves most 'table  full'  errors,  but
  44.           also  slows down the queries where in-memory tables
  45.           would suffice. Since Version 3.23.2, MySQL is  able
  46.           to  solve    it automaticaly    by using memory    for small
  47.           temporary    tables and switching to    disk tables where
  48.           necessary.
  49.  
  50.        ----bbiinndd--aaddddrreessss==_I_P
  51.           IP address to bind to.
  52.  
  53.        ----cchhaarraacctteerr--sseettss--ddiirr==_p_a_t_h
  54.           Directory     where    character  sets     are. See section
  55.           10.1.1 The Character Set Used for    Data and Sorting.
  56.  
  57.        ----cchhrroooott==_p_a_t_h
  58.           Chroot  mysqld  daemon  during startup. Recommended
  59.           security measure.    It will    somewhat limit LOAD  DATA
  60.           INFILE and SELECT    ... INTO OUTFILE though.
  61.  
  62.        --hh|----ddaattaaddiirr==_p_a_t_h
  63.           Path to the database root.
  64.  
  65.        ----ddeeffaauulltt--cchhaarraacctteerr--sseett==_c_h_a_r_s_e_t
  66.           Set  the    default    character set. See section 10.1.1
  67.           The Character Set    Used for Data and Sorting.
  68.  
  69.        ----ddeeffaauulltt--ttaabbllee--ttyyppee==_t_y_p_e
  70.           Set the default table type for tables. See  section
  71.           8    MySQL Table Types.
  72.  
  73.        ----ddeellaayy--kkeeyy--wwrriittee--ffoorr--aallll--ttaabblleess
  74.           Don't  flush  key     buffers  between  writes for any
  75.           MyISAM table. See    Mysql Manual section 12.2.3  Tun
  76.           ing Server Parameters.
  77.  
  78.        ----eennaabbllee--lloocckkiinngg
  79.           Enable system locking.
  80.  
  81.        --TT|----eexxiitt--iinnffoo
  82.           Print some debug info at exit.
  83.  
  84.        ----fflluusshh
  85.           Flush  all  changes to disk after    each SQL command.
  86.           Normally MySQL only does a write of all changes  to
  87.           disk  after each SQL command and lets the    operating
  88.           system handle the    syncing    to disk. See section 20.2
  89.           What to Do if MySQL Keeps    Crashing.
  90.  
  91.        --??|----hheellpp
  92.           Display short help and exit.
  93.  
  94.        ----iinniitt--ffiillee==_f_i_l_e
  95.           Read SQL commands    from this file at startup.
  96.  
  97.        --LL|----llaanngguuaaggee==......
  98.           Client  error  messages  in  given language. May be
  99.           given as a full path. See    Mysql Manual section 10.1
  100.           What Languages Are Supported by MySQL?.
  101.  
  102.        --ll|----lloogg_[_=_f_i_l_e_]
  103.           Log connections and queries to file.
  104.  
  105.        ----lloogg--iissaamm_[_=_f_i_l_e_]
  106.           Log all ISAM/MyISAM changes to file (only    used when
  107.           debugging    ISAM/MyISAM).
  108.  
  109.        ----lloogg--ssllooww--qquueerriieess_[_=_f_i_l_e_]
  110.           Log  all    queries     that  have   taken   more   than
  111.           long_query_time  seconds    to  execute  to    file. See
  112.           Mysql Manual section 21.5    The Slow Query Log.
  113.  
  114.        ----lloogg--uuppddaattee_[_=_f_i_l_e_]
  115.           Log updates to file.# where # is a unique    number if
  116.           not given. See Mysql Manual section 21.3 The Update
  117.           Log.
  118.  
  119.        ----lloogg--lloonngg--ffoorrmmaatt
  120.           Log some extra information to update  log.  If  you
  121.           are  using ----lloogg--ssllooww--qquueerriieess then queries that are
  122.           not using    indexes    are logged to the slow query log.
  123.  
  124.        ----llooww--pprriioorriittyy--uuppddaatteess
  125.           Table-modifying  operations  (INSERT/DELETE/UPDATE)
  126.           will have    lower priority than selects. It    can  also
  127.           be  done    via  {INSERT | REPLACE | UPDATE    | DELETE}
  128.           LOW_PRIORITY ... to lower    the priority of    only  one
  129.           query,  or by SET    OPTION SQL_LOW_PRIORITY_UPDATES=1
  130.           to change    the priority in     one  thread.  See  Mysql
  131.           Manual section  12.2.9 Table Locking Issues.
  132.  
  133.        ----mmeemmlloocckk
  134.           Lock  the    mysqld process in memory. This works only
  135.           if your system supports the mlockall() system call.
  136.           This may help if you have    a problem where    the oper
  137.           ating system is causing mysqld to    swap on    disk.
  138.  
  139.     ----mmyyiissaamm--rreeccoovveerr [[==ooppttiioonn[[,,ooppttiioonn......]]]]]]    wwhheerree  ooppttiioonn  iiss
  140.        oonnee ooff DDEEFFAAUULLTT,, BBAACCKKUUPP,, FFOORRCCEE oorr    QQUUIICCKK..
  141.           If this option is    used, mysqld will on  open  check
  142.           if  the  table  is  marked  as crashed or    if if the
  143.           table wasn't closed properly (The    last option  only
  144.           works  if     you are running with --skip-locking). If
  145.           this is the case    mysqld    will  run  check  on  the
  146.           table.  If  the  table  was  corrupted, mysqld will
  147.           attempt to repair    it. The    following options affects
  148.           how the repair works.  DDEEFFAAUULLTT The same as not giv
  149.           ing any option to    --myisam-recover.  BBAACCKKUUPP If  the
  150.           data  table  was    changed     during     recover,  save    a
  151.           backup  of  the  `table_name.MYD'     data    file   as
  152.           `table_name-datetime.BAK'.   FFOORRCCEE Run recover even
  153.           if we will loose more than one row  from    the  .MYD
  154.           file.   QQUUIICCKK  Don't check the rows in the table if
  155.           there isn't any delete blocks.  Before a    table  is
  156.           automaticly  repaired, mysqld will add a note about
  157.           this in the error    log. If    you want to  be     able  to
  158.           recover from most    things without user intervention,
  159.           you should use the options BACKUP,FORCE. This  will
  160.           force  a    repair of a table even if some rows would
  161.           be deleted, but it will keep the old data    file as    a
  162.           backup so    that you can later examine what    happened.
  163.  
  164.        ----ppiidd--ffiillee==_p_a_t_h
  165.           Path to pid file used by safe_mysqld.
  166.  
  167.        --PP|----ppoorrtt==......
  168.           Port number to listen for    TCP/IP connections.
  169.  
  170.        --oo|----oolldd--pprroottooccooll
  171.           Use the 3.20 protocol for    compatibility  with  some
  172.           very  old    clients. See Mysql Manual section  4.17.3
  173.           Upgrading    from Version 3.20 to Version 3.21.
  174.  
  175.        ----oonnee--tthhrreeaadd
  176.           Only use one thread (for    debugging  under  Linux).
  177.           See  Mysql  Manual  section   H.1    Debugging a MySQL
  178.           server.
  179.  
  180.        --OO| ----sseett--vvaarriiaabbllee vvaarr==_o_p_t_i_o_n
  181.           Give a variable a    value.    --help    lists  variables.
  182.           You  can    find a full description    for all    variables
  183.           in the SHOW VARIABLES section in this  manual.  See
  184.           Mysql  Manual  section   7.28.4 SHOW VARIABLES. The
  185.           tuning server parameters section includes     informa
  186.           tion  of    how  to     optimize these. See Mysql Manual
  187.           section  12.2.3 Tuning Server Parameters.
  188.  
  189.        --SSgg|----sskkiipp--ggrraanntt--ttaabblleess
  190.           This option causes the server not    to use the privi
  191.           lege system at all. This gives everyone full access
  192.           to all databases!    (You can tell a    running    server to
  193.           start  using  the     grant    tables again by    executing
  194.           mysqladmin flush-privileges or mysqladmin     reload.)
  195.  
  196.        ----ssaaffee--mmooddee
  197.           Skip    some     optimize     stages.      Implies
  198.           ----sskkiipp--ddeellaayy--kkeeyy--wwrriittee..
  199.  
  200.        ----sseeccuurree
  201.           IP numbers returned by the  gethostbyname()  system
  202.           call  are    checked    to make    sure they resolve back to
  203.           the original hostname. This  makes  it  harder  for
  204.           someone  on the outside to get access by pretending
  205.           to be another host. This option also adds    some san
  206.           ity  checks  of hostnames. The option is turned off
  207.           by default in MySQL Version 3.21 because    sometimes
  208.           it  takes     a  long time to perform backward resolu
  209.           tions. MySQL Version 3.22    caches hostnames  (unless
  210.           --skip-host-cache     is  used)  and     has  this option
  211.           enabled by default.
  212.  
  213.        ----sskkiipp--ccoonnccuurrrreenntt--iinnsseerrtt
  214.           Turn off the ability to select and  insert  at  the
  215.           same  time  on  MyISAM  tables. (This is only to be
  216.           used if you think    you have found a bug in    this fea
  217.           ture).
  218.  
  219.        ----sskkiipp--ddeellaayy--kkeeyy--wwrriittee
  220.           Ignore  the  delay_key_write option for all tables.
  221.           See Mysql     Manual     section   12.2.3  Tuning  Server
  222.           Parameters.
  223.  
  224.        ----sskkiipp--lloocckkiinngg
  225.           Don't use    system locking.    To use isamchk or myisam
  226.           chk you must shut    down the server. See Mysql Manual
  227.           section    1.6  How  Stable  Is MySQL?. Note that in
  228.           MySQL Version 3.23 you can use REPAIR and    CHECK  to
  229.           repair/check MyISAM tables.
  230.  
  231.        ----sskkiipp--nnaammee--rreessoollvvee
  232.           Hostnames     are not resolved. All Host column values
  233.           in the grant tables must be IP  numbers  or  local
  234.           host.
  235.  
  236.        ----sskkiipp--nneettwwoorrkkiinngg
  237.           Don't  listen  for  TCP/IP  connections at all. All
  238.           interaction with mysqld must be made via Unix sock
  239.           ets.  This option    is highly recommended for systems
  240.           where only local    requests  are  allowed.     However,
  241.           this  option  is    unsuitable  for     systems that use
  242.           MIT-pthreads,  because  the  MIT-pthreads      package
  243.           doesn't support Unix sockets.
  244.  
  245.        ----sskkiipp--nneeww
  246.           Don't  use  new,    possible  wrong    routines. Implies
  247.           ----sskkiipp--ddeellaayy--kkeeyy--wwrriittee
  248.  
  249.        ----sskkiipp--hhoosstt--ccaacchhee
  250.           Never use    host name cache    for faster name-ip  reso
  251.           lution,  but  query  DNS    server    on  every connect
  252.           instead.
  253.  
  254.        ----sskkiipp--sshhooww--ddaattaabbaassee
  255.           Don't allow 'SHOW    DATABASE'  commands,  unless  the
  256.           user has process privilege.
  257.  
  258.        ----sskkiipp--tthhrreeaadd--pprriioorriittyy
  259.           Disable using thread priorities for faster response
  260.           time.
  261.  
  262.        ----ssoocckkeett==_p_a_t_h
  263.           Socket file to use for local connections instead of
  264.           default /tmp/mysql.sock.
  265.  
  266.        --tt|----ttmmppddiirr==_p_a_t_h
  267.           Path  for    temporary files. It may    be useful if your
  268.           default /tmp directory resides on    a  partition  too
  269.           small to hold temporary tables.
  270.  
  271.        --uu|----uusseerr==_u_s_e_r___n_a_m_e
  272.           Run mysqld daemon    as user    user_name. This    option is
  273.           mandatory    when starting mysqld as    root.
  274.  
  275.        --VV|----vveerrssiioonn
  276.           Output version information and exit.
  277.  
  278.  
  279. NNOOTTEE
  280. SSEEEE AALLSSOO
  281.        isamchk (1), isamlog (1), mysqlaccess (1), mysqladmin (1),
  282.        mysqlbug     (1),  mysqld  (1), mysqldump (1), mysqlshow (1),
  283.        msql2mysql (1), perror (1), replace (1),    safe_mysqld  (1),
  284.        which1 (1), zap (1),
  285.  
  286. AAUUTTHHOORR
  287.        Ver  1.0,  distribution    3.23.29a Michael (Monty) Widenius
  288.        (monty@tcx.se), TCX  Datakonsult     AB  (http://www.tcx.se).
  289.        This  software  comes with no warranty.    Manual page by L.
  290.        (Kill-9)     Pedersen  (kill-9@kill-9.dk),    Mercurmedia  Data
  291.        Model  Architect     / system developer (http://www.mercurme
  292.        dia.com)
  293.  
  294.  
  295.  
  296.  
  297.              19 December 2000        MYSQLD(1)
  298.